package wsepForum.test.acceptance.story;

import junit.framework.TestCase;
import wsepForum.test.acceptance.bridge.ForumActionsProxyBridge;
import wsepForum.test.acceptance.bridge.IForumActions;


/**
 * A base class for the stories checking classes
 * @author Oren Ben-Haim
 *
 */
public class StoryBase extends TestCase {

	/**
	 * the interface for actions in our forum
	 */
	public IForumActions bridge;

	/*****************************
	 * CONSTRUCTOR               *
	 *****************************/
	public StoryBase(String name) {
		super(name);
	}

	protected void setUp() throws Exception {
		this.bridge = new ForumActionsProxyBridge();
	}

	@Override
	protected void tearDown() throws Exception {
		this.bridge.closeBridge();
	}

	/**
	 * Checks that the base class is initiated properly
	 * (also sweep out warnings regarding an empty test case)
	 */
	public void testBaseInitiated() {
		assertNotNull("Init failed!",this.bridge);
	}

}
